<script language="JavaScript" type="text/javascript">
function doDialog(findId){
	message = $('#p_message').html();
	if(message == '已提交'){
		if(confirm('你已经添加过信息了，是否继续添加')){
			rand = $('#rand').val();
			time = $('#time').val();
			url ='{{$siteInfo.appUrl}}/index.php?controller=Product&action=AddMore&kind='+ findId +'&rand='+ rand +'&time='+time;
			window.open(url,'','');
			$('#save').attr('disabled','disabled');
		}else{
		}
	}else{
		window.open('{{$siteInfo.appUrl}}/index.php?controller=Product&action=AddMore&kind='+ findId,'','');
		$('#save').attr('disabled','disabled');
	}
}
</script>
<input type="hidden" name="time" value="" id="time" />
<input type="hidden" name="rand" value="" id="rand" />
<table cellpadding="5" cellspacing="0" border="0" width="100%"
	id="nerve">
	<tr>
		<td colspan="2">产品信息以医疗器械注册证为准</td>
	</tr>
	<tr>
		<td><label for="origin"> 产品标记: </label></td>
		<td><select name="origin" size="1">
			<option value="-1">请选择</option>
			{{section name=origin loop=$isForeign}}
			<option value="{{$isForeign[origin].id}}" {{if ($list.isForeign==
				$isForeign[origin].id)}}selected="selected"{{/if}}>{{$isForeign[origin].name}}</option>
			{{/section}}
		</select></td>
	</tr>
	<tr>
		<td><label for="brand"> 生产者名称: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="product_c" name="product_c" value="{{$list.product_c}}" size="10" /></td>
	</tr>
	<tr>
		<td><label for="brand"> 品牌: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="brand" name="brand" value="{{$list.brand}}" size="10" /></td>
	</tr>
	<tr>
		<td><label for="location"> 产地: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="location" name="location" value="{{$list.location}}" size="10" /></td>
	</tr>
	<tr>
		<td><label for="position"> 部位: </label></td>
		<td><select name="position" size="1" id="position">
			<option value="-1">请选择部位</option>
			{{section name=p loop=$classArray.position}}
			<option value="{{$classArray.position[p].id}}" {{if $list.position==
				$classArray.position[p].id}}selected="selected"{{/if}}>{{$classArray.position[p].name}}</option>
			{{/section}}
		</select>
		<div id="position_m" style="display:none"><input
			name="positionMore" type="text" value="{{$list.positionMore}}"></div>
		</td>
	</tr>
	<tr>
		<td><label for="directoryName"> 项目产品目录名称: </label></td>
		<td><select name="directoryName" size="1">
			<option value="-1">请选择项目产品目录名称</option>
			{{section name=d loop=$classArray.directoryName}}
			<option value="{{$classArray.directoryName[d].id}}"
				{{if $list.directoryName==
				$classArray.directoryName[d].id}}selected="selected"{{/if}}>{{$classArray.directoryName[d].name}}</option>
			{{/section}}
		</select></td>
	</tr>
	<tr>
		<td><label for="clinicalName"> 临床通用名称: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="clinicalName" name="clinicalName" value="{{$list.clinicalName}}"
			size="40" /></td>
	</tr>
	<tr>
		<td><label for="productNumber"> 产品编号/规格/型号: </label></td>
		<td>
		{{if $do == 'edit'}}
		<div id="p_message">已提交</div><a href="index.php?controller=Product&action=Show&id={{$id}}&kind={{$findId}}" target="_black">查看</a>
		{{else}}
		<a href="javascript:;" onclick="doDialog({{$findId}});">添加</a><div id="p_message">未提交</div>
		{{/if}}
		</td>
	</tr>
	<tr>
		<td><label for="material"> 材质: </label></td>
		<td><select name="material" size="1" id="material">
			<option value="0">请选择材质</option>
			{{section name=m loop=$material}}
			<option value="{{$material[m].id}}" {{if $list.material==
				$material[m].id}}selected="selected"{{/if}}>{{$material[m].name}}</option>
			{{/section}}
		</select>
		<div id="material_m" style="display:none"><input
			name="materialMore" type="text" value="{{$list.materialMore}}"></div>
		</td>
	</tr>
	<tr>
		<td><label for="name"> 产品名称: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="name" name="name" value="{{$list.name}}" size="40" /></td>
	</tr>
	<tr>
		<td><label for="range"> 产品适用范围: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="range" name="range" value="{{$list.range}}" size="40" /></td>
	</tr>
	<tr>
		<td><label for="part"> 产品性能与组成: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="part" name="part" value="{{$list.part}}" size="40" /></td>
	</tr>
	<tr>
		<td><label for="norm"> 执行标准: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="norm" name="norm" value="{{$list.norm}}" size="40" /></td>
	</tr>
	<tr>
		<td><label for="pack"> 包装: </label></td>
		<td><select name="pack" size="1">
			<option value="0">选择包装</option>
			{{section name=p loop=$pack}}
			<option value="{{$pack[p].id}}" {{if $list.pack==
				$pack[p].id}}selected="selected"{{/if}}>{{$pack[p].name}}</option>
			{{/section}}
		</select></td>
	</tr>
	<tr>
		<td><label for="sterilizing"> 灭菌情况: </label></td>
		<td><input type="radio" name="sterilizing" value="1"
			{{if $list.sterilizing== 1}}checked="checked" {{/if}}/>灭菌 <input
			type="radio" name="sterilizing" value="2" {{if $list.sterilizing==
			2}}checked="checked" {{/if}}/>非灭菌</td>
	</tr>
	<tr>
		<td><label for="oldNumber"> 医疗器械产品注册证旧证件编号: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="oldNumber" name="cert_for[]" value="{{$list.cert.oldNumber}}"
			size="40" /></td>
	</tr>
	<tr>
		<td><label for="oldValidDate"> 医疗器械产品注册证旧证件有效期截止日期: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="oldValidDate" name="cert_for[]"
			value="{{$list.cert.oldValidDate}}" size="40" />格式为“2009-03-24”</td>
	</tr>
	<tr>
		<td><label for="noteNumber"> 国家药监局受理通知书号: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="noteNumber" name="cert_for[]" value="{{$list.cert.noteNumber}}"
			size="40" /></td>
	</tr>
	<tr>
		<td><label for="noteValidDate"> 国家药监局受理通知书有效期截止日期: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="noteValidDate" name="cert_for[]"
			value="{{$list.cert.noteValidDate}}" size="40" />格式为“2009-03-24”</td>
	</tr>
	<tr>
		<td><label for="newNumber"> 医疗器械产品注册证新证件编号： </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="newNumber" name="cert_for[]" value="{{$list.cert.newNumber}}"
			size="40" /></td>
	</tr>
	<tr>
		<td><label for="newValidDate"> 医疗器械产品注册证新证件有效期截止日期: </label></td>
		<td><input class="inputbox required validate-email" type="text"
			id="newValidDate" name="cert_for[]"
			value="{{$list.cert.newValidDate}}" size="40" />格式为“2009-03-24”</td>
	</tr>
</table>